<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<base href="<%=basePath%>">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>人员管理修改 </title>
    <base target="_self" />
    <link href="<%=basePath %>/Styles/css.css" rel="stylesheet" type="text/css" />
    <link href="<%=basePath %>/Styles/ts_css.css" rel="stylesheet" type="text/css" />
    <script src="<%=basePath %>/Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
    <script src="<%=basePath %>/Scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        $(function () {
            if ($("#btnSubmit").val() == "提交") {
                if ($("#hidorganizationId").val() == "0") {
                    alert("请选择要添加的部门;window.close()");
                    return false;
                }
            }
        

        });
        
    </script>
</head>
<body>
    <form method="post" action="user/updateUser.do" id="form1">
    <div>
        <table border="0" width="100px" cellpadding="2" cellspacing="2" class="table_list1">
            <tr>
                <td width="40%" class="table_list1_style1">
                    <font class="red">*</font> 账号名称
                </td>
                <td width="20%" class="table_list1_style2">
                	<input name="id" id="id" type="hidden" value="${user.id }" />
                    <input name="useraccount" type="text" value="${user.useraccount }" maxlength="25" id="useraccount"
                        style="width: 90%;" readonly="readonly"/>
                </td>
                <td width="40%" class="table_list1_style1"></td>
            </tr>
            <tr>
                <td width="40%" class="table_list1_style1">
                    <font class="red">*</font> 账号密码
                </td>
                <td width="20%" class="table_list1_style2">
                    <input name="userpassword" type="password" value="${user.userpassword }" maxlength="20" id="userpassword"
                        style="width: 90%;" />
                </td>
                <td width="40%" class="table_list1_style1"></td>
            </tr>
            <tr>
                <td width="40%" class="table_list1_style1">
                    <font class="red">*</font> 用户名称
                </td>
                <td width="20%" class="table_list1_style2">
                    <input name="username" type="text" value="${user.username }" id="username" style="width: 90%;" />
                </td>
                <td width="40%" class="table_list1_style1"></td>
            </tr>
            <tr>
                <td width="40%" class="table_list1_style1">
                    	用户电话
                </td>
                <td width="20%" class="table_list1_style2">
                    <input name="usermobile" type="text" value="${user.usermobile }" id="usermobile" style="width: 90%;" />
                </td>
                <td width="40%" class="table_list1_style1"></td>
            </tr>
            <tr>
                <td width="40%" class="table_list1_style1">
                   		创建时间
                </td>
                <td width="20%" class="table_list1_style2">
                    <input name="creattime" type="text" value="<fmt:formatDate value="${user.creattime}" type="both"/>" id="creattime" style="width: 90%" readonly="readonly"/>
                </td>
                <td width="40%" class="table_list1_style1"></td>
            </tr>
            <tr>
                <td width="40%" class="table_list1_style1">
                    	职位
                </td>
                <td width="20%" class="table_list1_style2">
                    <select name="roleid" id="roleid" style="width: 90%;">
                        <option <c:if test="${user.roleid == 1}">selected="selected"</c:if> value="1">总经理</option>
                        <option <c:if test="${user.roleid == 2}">selected="selected"</c:if> value="2">开发人员</option>
                        <option <c:if test="${user.roleid == 3}">selected="selected"</c:if> value="3">销售人员</option>
                    </select>
                </td>
                <td width="40%" class="table_list1_style1"></td>
            </tr>
        </table>
        <div class="operate" align="center">
           <input id="btnBack" type="submit" class="button" value=" 修  改 "  />
        </div>
    </div>
    <input type="hidden" name="hidorganizationId" id="hidorganizationId" />
    </form>
</body>
</html>

